import java.io.*;
import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) throws IOException {
        File sushe = new File("d:\\sushe.txt");
        FileReader fr = new FileReader(sushe);
        BufferedReader br = new BufferedReader(fr);
        ArrayList<Student1> stus = new ArrayList<>();
        String hang;
        while ((hang = br.readLine())!=null){
            String[] hangs = hang.split(",");

            Student1 s = new Student1();
            s.setXuehao(hangs[0]);
            s.setName(hangs[1]);
            s.setSex(hangs[2]);
            s.setYuanxi(hangs[5]);
            s.setLuodong(hangs[6]);
            s.setLuoceng(hangs[7]);
            s.setMenpai(Integer.valueOf(hangs[3]));
            s.setChuangwei(Integer.valueOf(hangs[4]));

            stus.add(s);


            for (int i = 0; i <stus.size() ; i++) {
                System.out.println(stus.get(i));
            }
        }






    }
}
